package com.dhcc.bpm.modules.log.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dhcc.bpm.modules.log.entity.Tps;
import com.dhcc.bpm.modules.log.vo.GatewayLogDayVO;
import com.dhcc.bpm.modules.log.vo.TpsModelVO;

import java.util.List;

/**
 * <p>
 * tps管理表 服务类
 * </p>
 *
 * @author xiafayu
 * @since 2021-05-31
 */
public interface ITpsService extends IService<Tps> {
    /**
     * @Description 自定义分页
     * @Author xiafayu
     * @Date 2020/2/24 15:36
     * @param page
     * @param tpsVO
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.log.vo.TpsVO>
     **/
    IPage<TpsModelVO> selectTpsPage(IPage<TpsModelVO> page, TpsModelVO tpsVO);

    List<Tps> getList(String apiCode, String tpsDate);

    List<String> getApiCodeList(String tpsDate);

    List<Tps> getDayALlTpsPeak(String tpsDate);

    List<TpsModelVO> getHourList(GatewayLogDayVO gatewayLogDayVO);

    List<TpsModelVO> getDayList(GatewayLogDayVO gatewayLogDayVO);

    int deleteTpsByDate(String tpsDate);

    long queryTpsByDate(String reqDate, List<String> apiCodeList);
}
